Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cuda_root_path: Find cuda libraries when installed with conda packages #20288

Closed
wants to merge 1 commit into from

Conversation

traversaro
Copy link
Contributor

This fix emerged when looking in solving jax-ml/jax#24604 . In a nutshell, the official cuda package for conda (both in the conda-forge and nvidia conda channels) install the CUDA libraries in a different location with respect to PyPI packages, so the logic to find them needs to be augmented to be able to find the CUDA libraries when installed from conda packages.

I did not tested this with a tensorflow build, but probably this will also help in solving tensorflow/tensorflow#56927 .

xref: conda-forge/tensorflow-feedstock#408
xref: conda-forge/jaxlib-feedstock#288

copybara-service bot pushed a commit that referenced this pull request Jan 20, 2025
…nda packages

Imported from GitHub PR #20288

This fix emerged when looking in solving jax-ml/jax#24604 . In a nutshell, the official cuda package for conda (both in the `conda-forge` and `nvidia` conda channels) install the CUDA libraries in a different location with respect to PyPI packages, so the logic to find them needs to be augmented to be able to find the CUDA libraries when installed from conda packages.

I did not tested this with a tensorflow build, but probably this will also help in solving tensorflow/tensorflow#56927 .

xref: conda-forge/tensorflow-feedstock#408
xref: conda-forge/jaxlib-feedstock#288
Copybara import of the project:

--
a2ce85c by Silvio Traversaro <[email protected]>:

cuda_root_path: Find cuda libraries when installed with conda packages

Merging this change closes #20288

FUTURE_COPYBARA_INTEGRATE_REVIEW=#20288 from traversaro:fixloadcudaconda a2ce85c
PiperOrigin-RevId: 717411600
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Jan 20, 2025
…nda packages

Imported from GitHub PR openxla/xla#20288

This fix emerged when looking in solving jax-ml/jax#24604 . In a nutshell, the official cuda package for conda (both in the `conda-forge` and `nvidia` conda channels) install the CUDA libraries in a different location with respect to PyPI packages, so the logic to find them needs to be augmented to be able to find the CUDA libraries when installed from conda packages.

I did not tested this with a tensorflow build, but probably this will also help in solving #56927 .

xref: conda-forge/tensorflow-feedstock#408
xref: conda-forge/jaxlib-feedstock#288
Copybara import of the project:

--
a2ce85cf9df1ede3f3c1843ede55d4c76673910e by Silvio Traversaro <[email protected]>:

cuda_root_path: Find cuda libraries when installed with conda packages

Merging this change closes #20288

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#20288 from traversaro:fixloadcudaconda a2ce85cf9df1ede3f3c1843ede55d4c76673910e
PiperOrigin-RevId: 717411600
copybara-service bot pushed a commit that referenced this pull request Jan 20, 2025
…nda packages

Imported from GitHub PR #20288

This fix emerged when looking in solving jax-ml/jax#24604 . In a nutshell, the official cuda package for conda (both in the `conda-forge` and `nvidia` conda channels) install the CUDA libraries in a different location with respect to PyPI packages, so the logic to find them needs to be augmented to be able to find the CUDA libraries when installed from conda packages.

I did not tested this with a tensorflow build, but probably this will also help in solving tensorflow/tensorflow#56927 .

xref: conda-forge/tensorflow-feedstock#408
xref: conda-forge/jaxlib-feedstock#288
Copybara import of the project:

--
a2ce85c by Silvio Traversaro <[email protected]>:

cuda_root_path: Find cuda libraries when installed with conda packages

Merging this change closes #20288

FUTURE_COPYBARA_INTEGRATE_REVIEW=#20288 from traversaro:fixloadcudaconda a2ce85c
PiperOrigin-RevId: 717411600
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Jan 20, 2025
…nda packages

Imported from GitHub PR openxla/xla#20288

This fix emerged when looking in solving jax-ml/jax#24604 . In a nutshell, the official cuda package for conda (both in the `conda-forge` and `nvidia` conda channels) install the CUDA libraries in a different location with respect to PyPI packages, so the logic to find them needs to be augmented to be able to find the CUDA libraries when installed from conda packages.

I did not tested this with a tensorflow build, but probably this will also help in solving #56927 .

xref: conda-forge/tensorflow-feedstock#408
xref: conda-forge/jaxlib-feedstock#288
Copybara import of the project:

--
a2ce85cf9df1ede3f3c1843ede55d4c76673910e by Silvio Traversaro <[email protected]>:

cuda_root_path: Find cuda libraries when installed with conda packages

Merging this change closes #20288

PiperOrigin-RevId: 717440484
@traversaro
Copy link
Contributor Author

Thanks for merging!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants